package derivable;

/**
 * A binary operator on integers.
 * 
 * @author Henrik Wall
 * @author Rudolf Schmidt
 * @author Eugen Nemirowski
 */
public enum Operator implements Symbolized {
	LESS_THAN("<", false),
	EQUALS("=", true),
	NEGATIVE_EQUALS("-=", true);
	
	private final String symbol;
	private final boolean symmetric;

	private Operator(final String symbol, final boolean symmetric) {
		this.symbol = symbol;
		this.symmetric = symmetric;
	}
	
	@Override
	public String getSymbol() {
		return symbol;
	}

	public boolean isSymmetric() {
		return symmetric;
	}

	@Override
	public String toString() {
		return getSymbol();
	}
}